package com.tjbklx1.threadpool.test;

import com.tjbklx1.threadpool.IAsynchronousHandler;

public class MyHandler implements IAsynchronousHandler {
	private Long id;
	private String name;

	public MyHandler(Long StringId) {
		this.id = StringId;
	}

	public MyHandler(String String) {
		this.name = String;
	}

	@Override
	public void executeAfter(Throwable throwable) {
	}

	@Override
	public void executeBefore(Thread thread) {
	}

	@Override
	public Object call() throws Exception {
		if (name != null) {
			return name;
		} else {
			return id;
		}
	}
}